package com.ruoyi.web.controller.workflow;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.workflow.domain.CarPackageAudit;
import com.ruoyi.workflow.service.IDoneTaskService;
import com.ruoyi.workflow.service.ITodoTaskService;
import com.ruoyi.workflow.vo.HistoricActivity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 套餐信息Controller
 *
 * @author yeqi
 * @date 2022-11-18
 */
@RestController
@RequestMapping("/workflow/done")
public class DoneTaskController extends BaseController
{
   @Autowired
   private IDoneTaskService doneTaskService;

    /**
     * 查询套餐信息列表
     */
    @GetMapping("/list")
    public TableDataInfo list(CarPackageAudit  carPackageAudit)
    {

        return doneTaskService.selectDoneList(carPackageAudit);
    }

    /**
     * 查询套餐信息列表
     */
    @GetMapping("/history")
    public AjaxResult history(String instanceId)
    {
       List<HistoricActivity> list = doneTaskService.selectHistoryList(instanceId);
        return AjaxResult.success(list);
    }




}
